Click or drag to resize

ResourceCopy Method (String, String, Boolean, Boolean)

Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.

Namespace:  Independentsoft.Webdav
Assembly:  Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntax
public bool Copy(
	string source,
	string destination,
	bool overwrite,
	bool recursive
)

Parameters

source
Type: SystemString
Source resource URI.
destination
Type: SystemString
Destination resource URI.
overwrite
Type: SystemBoolean
True to allow an existing resource to be overwritten; otherwise, false.
recursive
Type: SystemBoolean
True to copy this resource and all subresources. False means only copy this resource (collection) without subresources.

Return Value

Type: Boolean
True if success; otherwise, false.
Remarks
Some WebDAV servers doesn't understand resursive parameter.
See Also